#!/usr/bin/env python
# coding=utf-8

"a simple tutorial"

import web

#url mapping
urls = (
    '/(.*)', "Index"
)

#template
render = web.template.render("templates")

class Index:
    def GET(self, hello):
        i = web.input(name=None)
        return render.index(hello, i.name)

if __name__ == "__main__":
    app = web.application(urls, globals())
    app.run()

